
package com.jf.cloud.delivery.constant;

/**
 * 分表类型
 * @author zz
 */
public enum DeliveryShardingTableType {

    /**
     * 0.默认
     */
    DEFAULT(0, ""),
    /**
     * 同城配送
     */
    SAME_CITY(1, "same_city"),
    ;
    private final Integer num;
    private final String name;

    public Integer value() {
        return num;
    }

    public String getName() {
        return name;
    }

    DeliveryShardingTableType(Integer num, String name){
        this.num = num;
        this.name = name;
    }

}
